#ifndef IMAGE_CODEC_H
#define IMAGE_CODEC_H

#ifdef CONVERTER_EXPORTS
#define CONVERTER_API __declspec(dllexport)
#else
#define CONVERTER_API __declspec(dllimport)
#endif

extern "C" {

CONVERTER_API bool EncodeToJPEGBuffer(unsigned char* pRgbBuffer,unsigned long dwWidth,unsigned long dwHeight,unsigned char* pJpgBuffer,unsigned long &dwJpgBufferSize);

CONVERTER_API void DecodeJpegBuf(unsigned char* srcJpg, unsigned char* desRgb, unsigned int & jpgW,unsigned  int& jpgH, int len);

}

#endif //IMAGE_CODEC_H

